package in.muton.edushare.components.messaging.sendpanel;

import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.panel.Panel;

public class ActionSwapper extends Panel {
	private static final long serialVersionUID = 3907747094497367403L;

	public ActionSwapper(String id, boolean msg, final boolean assgn, boolean sch) {
		super(id);
		addContainer("assgnLink", assgn);
		addContainer("msgLink", msg);
		addContainer("schLink", sch);
	}
	
	public void addContainer(String id, final boolean add){
		add(new WebMarkupContainer(id){
			private static final long serialVersionUID = -5882048929539482371L;
			@Override
			public boolean isVisible(){
				if(add)
					return true;
				else 
					return false;
			}
		});		
	}
}
